package com.construction_Safety.information.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.construction_Safety.information.mapper.CInspecAlbumMapper;
import com.construction_Safety.information.domain.CInspecAlbum;
import com.construction_Safety.information.service.ICInspecAlbumService;

/**
 * 维修相册管理Service业务层处理
 * 
 * @author yat
 * @date 2025-06-15
 */
@Service
public class CInspecAlbumServiceImpl implements ICInspecAlbumService 
{
    @Autowired
    private CInspecAlbumMapper cInspecAlbumMapper;

    /**
     * 查询维修相册管理
     * 
     * @param id 维修相册管理主键
     * @return 维修相册管理
     */
    @Override
    public CInspecAlbum selectCInspecAlbumById(Integer id)
    {
        return cInspecAlbumMapper.selectCInspecAlbumById(id);
    }

    /**
     * 查询维修相册管理列表
     * 
     * @param cInspecAlbum 维修相册管理
     * @return 维修相册管理
     */
    @Override
    public List<CInspecAlbum> selectCInspecAlbumList(Long informationId)
    {
        return cInspecAlbumMapper.selectCInspecAlbumList(informationId);
    }

    /**
     * 新增维修相册管理
     * 
     * @param cInspecAlbum 维修相册管理
     * @return 结果
     */
    @Override
    public int insertCInspecAlbum(CInspecAlbum cInspecAlbum)
    {
        return cInspecAlbumMapper.insertCInspecAlbum(cInspecAlbum);
    }

    /**
     * 修改维修相册管理
     * 
     * @param cInspecAlbum 维修相册管理
     * @return 结果
     */
    @Override
    public int updateCInspecAlbum(CInspecAlbum cInspecAlbum)
    {
        return cInspecAlbumMapper.updateCInspecAlbum(cInspecAlbum);
    }

    /**
     * 批量删除维修相册管理
     * 
     * @param ids 需要删除的维修相册管理主键
     * @return 结果
     */
    @Override
    public int deleteCInspecAlbumByIds(Integer[] ids)
    {
        return cInspecAlbumMapper.deleteCInspecAlbumByIds(ids);
    }

    /**
     * 删除维修相册管理信息
     * 
     * @param id 维修相册管理主键
     * @return 结果
     */
    @Override
    public int deleteCInspecAlbumById(Integer id)
    {
        return cInspecAlbumMapper.deleteCInspecAlbumById(id);
    }

    @Override
    public int deleteCInformationByInfoId(Long InformationId) {
        return cInspecAlbumMapper.deleteCInspecAlbumByInfoId(InformationId);
    }
}
